﻿<UserControl x:Class="StockholmsStad.Windows.UI.Modules.MainModule.Views.MenuView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:models="clr-namespace:StockholmsStad.Windows.UI.Infrastructure.Models;assembly=StockholmsStad.Windows.UI.Infrastructure"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <DataTemplate x:Key="menuTemplate" DataType="{x:Type models:UICommandModel}">
            <MenuItem Header="{Binding Header}" Command="{Binding Command}" 
                      CommandParameter="{Binding Parameter}" ToolTip="{Binding ToolTip}" />
        </DataTemplate>
    </UserControl.Resources>

    <Menu Background="Transparent">
        <MenuItem Header="Arkiv">
            <MenuItem Header="Close" Command="ApplicationCommands.Close" />
        </MenuItem>

        <MenuItem Header="Redigera" >
            <MenuItem Header="Klipp ut" Command="ApplicationCommands.Cut" />
            <MenuItem Header="Kopiera" Command="ApplicationCommands.Copy" />
            <MenuItem Header="Klistra in" Command="ApplicationCommands.Paste" />
            <MenuItem Header="Radera" Command="ApplicationCommands.Delete" />
        </MenuItem>

        <MenuItem Header="Hjälp" >
            <MenuItem Header="Hjälp" Command="ApplicationCommands.Open" />
            <Separator />
            <MenuItem Header="Om Parvis" Command="ApplicationCommands.Open" />
        </MenuItem>
    </Menu>

</UserControl>
